<?php
class Application_Model_Store extends Application_Model_DomainObject{
	
	protected $_id;
	
	protected $_userId;
	
	protected $_storeNo;
	
	protected $_address;
	
        protected $_storeitems;


        /**
	 * 返回用户的所有仓库信息
	 * @return array
	 */
	public function getItems(){
            exit("getItems");
//		if(NULL!= $this->_items)
//			return $this->_items;
//		
//		if(isset($this->_id))
//			$this->_items = Application_Model_OrderItem::getByOrderId($this->_id);
//		else
//			$this->_items = array();
//		
//		return $this->_items;		
	}
        /**
         * 获取云仓库信息
         */
        public function queryStoreAll($productName,$username,$state,$logistics,$storeno,$starttime,$endtime,$pagesize,$pageindex)
        {
             $getItem=new Application_Model_DbTable_Store();
             return $getItem->queryStoreAll($productName,$username,$state,$logistics,$storeno,$starttime,$endtime,$pagesize,$pageindex);
        }
        
        public function editdetails($id)
        {
            $getItem=new Application_Model_DbTable_Store();
            return $getItem->editdetails($id);
        }
        
        public function editStore($id,$set)
        {
            $getItem=new Application_Model_DbTable_Store();
            return $getItem->editStore($id,$set);
        }
        
        public function delStore($idlist)
        {
            $getItem=new Application_Model_DbTable_Store();
            return $getItem->delStore($idlist);
        }
        
        public function ingstoreQueryStore($logisticsNo,$username,$state,$starttime,$endtime,$pagesize,$pageindex)
        {
            $getItem=new Application_Model_DbTable_Store();
            return $getItem->ingstoreQueryStore($logisticsNo, $username, $state, $starttime, $endtime, $pagesize, $pageindex);
        }
        
        public function ingStoreDel($idlist)
        {
            $getItem=new Application_Model_DbTable_Store();
            return $getItem->ingStoreDel($idlist);
        }
        
        public function ingStoreDetail($id)
        {
            $getItem=new Application_Model_DbTable_Store();
            return $getItem->ingStoreDetail($id);
        }
        
        public function ingstoreedit($storeId,$dateInStore,$productName,$remark,$images,$weights,$quantitys)
        {
            $getItem=new Application_Model_DbTable_Store();
            return $getItem->ingstoreedit($storeId, $dateInStore, $productName, $remark, $images, $weights, $quantitys);
        }
        
        public function ingstorefile($storeId,$weights,$quantitys,$length,$isBrand,$volumeWeight,$bignessType,$width,$isSpecific,$vacuumWeight,$noPackageWeight,$height,$canVacuum)
        {
            $getItem=new Application_Model_DbTable_Store();
            return $getItem->ingstorefile($storeId,$weights,$quantitys,$length,$isBrand,$volumeWeight,$bignessType,$width,$isSpecific,$vacuumWeight,$noPackageWeight,$height,$canVacuum);
        }
}